import {stringify} from 'qs';
import request from '@/utils/request';


export async function query(params) {
  return request(`/api/v1/user/queryByPage?${stringify(params)}`)
}

export async function remove(params) {
  return request('/api/v1/user', {
    method: 'DELETE',
    body: {
      ...params
    },
  });
}

export async function saveOrUpdate(params) {
  return request('/api/v1/user/saveOrUpdate', {
    method: 'POST',
    body: {
      ...params
    },
  });
}
